package com.yc;

import feign.Feign;
import feign.gson.GsonDecoder;

import java.util.List;

/**
 * @ClassName tets
 * @since: 2023/8/23 16:32
 * @auth: kirito
 * @description:
 **/
public class MyApp {
    public static void main(String[] args) {
        GitHub github = Feign.builder()
                .decoder(new GsonDecoder())
                .target(GitHub.class, "https://api.github.com");

        List<Contributor> contributors = github.contributors("OpenFeign", "feign");
        for (Contributor contributor : contributors) {
            System.out.println(contributor);
        }
    }
}